package com.kaibes.platform.article.db.entity;

import com.kaibes.core.base.annotation.Description;

import lombok.Data;

/**
CREATE TABLE `article_category` (
  `id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(64) NOT NULL,
  `sort` TINYINT NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
 */
@Data
@Description("文章分类")
public class ArticleCategory {
    @Description("分类ID")
    private Short id;
    @Description("分类名称，用于显示")
    private String name;
    @Description("排序")
    private Short sort;
}
